acspyexmplSimulatorExtras
index
/diska/alma_tmp/ACS/LGPL/CommonSoftware/acspyexmpl/src/acspyexmplSimulatorExtras.py

Includes complex class definitions, functions, etc that will be
used by simulated IDL components. 
 
There are several intended purposes of this module and the 
first is to place code relating to complex simulations outside 
of the domain of the ACS CDB. In doing so, code checking tools 
can be used to analyze the desired simulator behavior looking for
Python misuses.

 
Classes
       
ACSImpl.DevIO.DevIO
CurrentDevIO

 
class CurrentDevIO(ACSImpl.DevIO.DevIO)
    A readwrite BACI double property DevIO implementation for the
"current" property of the PS::PowerSupply IDL interface. This
particular implementation mimics the C++ acsexmplPowerSupplyCurrentImpl.h
header which:
    writes out the value being written to it (when being set) to the
    "readback" readonly BACI double property also of the PS::PowerSupply
    IDL interface.
 
As an example, this is quite useful as it shows how to mimic the C++
PowerSupply example precisely without ever coding a full component 
implementation.
 
  Methods defined here:
__init__(self, comp_ref)
Constructor
 
Parameters:
    comp_ref - a reference to the component which is creating
    "us"
    
Returns: Nothing
 
Raises: Nothing
write(self, value)
Overridden. 
 
Calls the super implementation and sets the "current" readonly
BACI double property to value.

Methods inherited from ACSImpl.DevIO.DevIO:
read(self)
Method to read a value. Can/should be overriden by subclasses.
 
Parameters: None
 
Returns: device value
 
Raises: Nothing